package org.ellwood.core.common.entity;

import lombok.Data;
import lombok.experimental.SuperBuilder;

/**
 * @ProjectName: ellwood-boot-pro
 * @PackageName: org.ellwood.core.common.entity
 * @ClassName: AccessRequestLog
 * @Description: // 访问请求日志
 * @Author: Ellwood
 * @CreateDate: 2024/6/15 - 上午12:29
 * @Version: V1.0.0
 */
@Data
@SuperBuilder
public class AccessRequestLog {

    private String type;
    /**
     * 请求标识
     */
    private String traceId;
    private String userId;
    /**
     * 请求路径
     */
    private String url;
    /**
     * 开始时间戳
     */
    private long timestamp;
    /**
     * http 方法：GET、POST等
     */
    private String method;
    /**
     * url 参数体
     */
    private Object param;
    /**
     * form表单参数体
     */
    private Object form;
    /**
     * post body参数体
     */
    private Object body;
    private String ip;
    private String contentType;
    private Object requestBody;

    {
        type="request";
    }

}
